package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.VO.AdminVO;
import cn.tedu.csmall.product.pojo.entity.Admin;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface AdminMapper {
    int insert(Admin admin);
    int insertByAdmin(List<Admin> admins);
    int deleteById(Long id);
    int deleteByIds(Long[] ids);
    int updateAdmin(Admin admin);
    int count();
    int countByUsername(String username);
    int countByPhone(String phone);
    int countByEmail(String email);
    AdminVO getAdminById(Long id);
    List<AdminVO> list();
}
